import axios from 'axios'

/**
 * 登录
 */
export function login() {
    location.href = `${window.ssoConfig.serverUrl}/sso/login?back=${window.ssoConfig.redirect}`
}

export function logout() {
    return axios({
        url: '/api/sso/logout',
        method: 'get'
    })
}
